﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace SYMetro.DataObjects
{
    public partial class MembershipConfigDataObject
    {
        public int PasswordFormatValue
        {
            get
            {
                int r = 0;
                switch(this.PasswordFormat)
                {
                    case "Clear":
                        r = 0;
                        break;
                    case "Encrypted":
                        r = 2;
                        break;
                    case "Hashed":
                        r = 1;
                        break;
                    default:
                        r = 0;
                        break;
                }
                return r;
            }
        }
    }

    public partial class UserDataObject
    {
        public bool RememberMe
        {
            get;
            set;
        }
    }
}
